import http from '../../utils/http'

//const api_root_1 = 'https://mall.tenyuanda.com:6443';
module.exports = {
	liquefiedUserGasRoomOrderCheckDetail:(params)=>http.request({url: '/energy-app/lpgorder/patrolDetail',data: params,method:'get'}),
	orderList:(params)=>http.request({url: '/energy-app/lpgorder/myOrders',data: params,method:'get'}),
	cancelOrder:(params)=>http.request({url: '/energy-app/lpgorder/user/cancel',data: params,method:'get'}),
	payOrder:(params)=>http.request({url: '/energy-app/lpgorder/pay',data: params,method:'get'}),
	
	//获取商品列表
	getGoodsList:(params)=>http.request({url: '/energy-app/lpgsku/list',data: params,method:'get'}),
	getCartGoodsList:(params)=>http.request({url: '/energy-app/lpgcart/list',data: params,method:'get'}),
	addCart:(params)=>http.request({url: '/energy-app/lpgcart/plus',data: params,method:'get'}),
	countCart:(params)=>http.request({url: '/energy-app/lpgcart/count',data: params,method:'post'}),
	minusCart:(params)=>http.request({url: '/energy-app/lpgcart/minus',data: params,method:'get'}),
	clearCart:(params)=>http.request({url: '/energy-app/lpgcart/clear',data: params,method:'post'}),
	goSettlement:(params)=>http.request({url: '/energy-app/lpgcart/getConfirmInfo',data: params,method:'get'}),
	simbutOrder:(params)=>http.request({url: '/energy-app/lpgcart/createOrder',data: params,method:'post',isFormData: true}),
	
	
	
	
	userAddr:(params)=>http.request({url: '/energy-app/lpguser/myList',data: params,method:'get'}),
	//liquefiedGasRoomUserList:(params)=>http.request({url: '/energy-app/lpguser/list',data: params,method:'get'}),
	//liquefiedGasVillageAppList:(params)=>http.request({url: '/energy-app/village/list',data: params,method:'get'}),
	//liquefiedGasTownAppList:(params)=>http.request({url: '/energy-app/town/list',data: params,method:'get'}),
	liquefiedGasUserAppSave:(params,type)=>http.request({url: `/energy-app/lpguser/${type==='edit'?'update':'save'}`,data: params,method:'post'}),
	liquefiedGasUserAppDelete:(params)=>http.request({url: '/energy-app/lpguser/delete',data: params,method:'post'}),
	
}
